Skip to content

Fix: do not overwrite default origin language#205

Merged
janepie merged 1 commit intomainfrom
fix/default-language-translate2
Mar 11, 2025
Merged

Fix: do not overwrite default origin language#205
janepie merged 1 commit intomainfrom
fix/default-language-translate2

Conversation

@janepie
Copy link
Member

@janepie janepie commented Mar 10, 2025

resolves #198

} else if (tt.id === 'core:text2text:translate') {
tt.inputShapeDefaults.origin_language = 'detect_language'
if (!tt.inputShape.origin_language) {
tt.inputShapeDefaults.origin_language = 'detect_language'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may not be the right person to review this, I don't get why this works 😅

Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
@janepie janepie force-pushed the fix/default-language-translate2 branch from 99dd373 to 479d1dd Compare March 11, 2025 12:19
@janepie janepie requested a review from marcelklehr March 11, 2025 12:21
@janepie janepie merged commit 829e1d9 into main Mar 11, 2025
9 checks passed
@janepie janepie deleted the fix/default-language-translate2 branch March 11, 2025 13:00
@julien-nc julien-nc mentioned this pull request Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If "The language of the origin text" is not specified, translation doesn't work

3 participants